-- 设置颜色主题
-- vim.cmd("colorscheme onedark_vivid")

require("onedarkpro").setup({
  styles = {
    -- 设置粗体和斜体 https://github.com/olimorris/onedarkpro.nvim#configuring-styles
    types = "NONE",
    methods = "bold, italic",
    numbers = "NONE",
    strings = "NONE",
    comments = "italic",
    keywords = "bold,italic",
    constants = "NONE",
    functions = "bold, italic",
    operators = "NONE",
    variables = "bold",
    parameters = "NONE",
    conditionals = "italic",
    virtual_text = "NONE",
  },
  options = {
    highlight_inactive_windows = true,
    -- transparency = true, --
  },

  -- 修改高亮组颜色
  highlights = {
    -- sem -> semantic token
    -- Comment = { fg = "green" },
    parameter               = { fg = "#FF8000" };
    CocSemParameter         = { link = "parameter" }, -- c函数入参颜色
    CocSymbolTypeParameter  = { link = "parameter" }, -- c函数入参颜色

    ["@variable"]           = { fg = "#6B73FF" },
    ["@global"]             = { fg = "#d55fde" },
    ["@property"]           = { fg = "#d55fde", guifg = "#d55fde" },
    ["@constant"]           = { fg = "#ef596f", guifg = "#ef596f" },
    -- ["@number"]             = { fg = "#EDE73F", guifg = "#EDE73F" },
    -- ["Boolean"]             = { fg = "#EDE73F", guifg = "#EDE73F" },

-- #EDE73F

    CocSemProperty          = { fg = "#008080" }, -- c semantic token 结构体成员
    CocSemEnumMember        = { link = "operator" }, -- 枚举值的颜色
    CocSymbolEnumMember     = { link = "operator" }, -- 枚举值的颜色

  },
})

-- 需要先设置颜色组再设置主题才会生效
vim.cmd("colorscheme onedark_vivid")

